<template>
  <div>
    <div class="title-box flex justify-between items-center">
      <div class="flex items-center">
        <div class="icon"></div>
        <div class="title m-2">环水资讯</div>
      </div>
      <div class="flex items-center cursor-pointer more">
        更多
        <RightOutlined />
      </div>
    </div>
    <div class="title-line"></div>
    <ul class="news-content p-4">
      <li 
        class="flex items-center justify-between title-li cursor-pointer"
        v-for="(i, index) in 10" :key="index"
      >
        <div class="title">• 那些可以领取补贴？</div>
        <div class="date">2023-9-19</div>
      </li>
    </ul>
  </div>
</template>
<script lang="ts" setup>
import { RightOutlined } from '@ant-design/icons-vue'

</script>
<style lang="less" scoped>
  .title-box {
    padding: 12px 22px;
    .icon {
      height: 16px;
      width: 29px;
      background: url(https://szgk.sz-water.com.cn/resource/wt_resource/svg/biaotizhuangshi1.svg) no-repeat 50%;
      background-size: 100% 100%;
    }
    .title {
      font-family: PingFang SC;
      font-style: normal;
      font-weight: 600;
      font-size: 16px;
      line-height: 16px;
      color: #2cc7c8;      
    }
    .more {
      font-family: PingFang SC;
      font-style: normal;
      font-weight: 400;
      font-size: 14px;
      line-height: 14px;
      color: #2cc7c8;
      margin-right: 2px;
    }
  }
  .title-line {
    width: 100%;
    height: 1px;
    background: -webkit-gradient(linear,left top,right top,from(rgba(44,199,200,0)),color-stop(48.96%,rgba(44,199,200,.510417)),to(rgba(44,199,200,0)));
    background: linear-gradient(90deg,rgba(44,199,200,0),rgba(44,199,200,.510417) 48.96%,rgba(44,199,200,0));    
  }
  .news-content {
    list-style: disc;
    .title-li {
      padding: 8px 4px;
      margin-bottom: 12px;
      border-radius: 4px;
      &:hover {
        background-color: #f5f5f5;
      }
      &:last-child {
        margin-bottom: 0
      }
    }
    .title {
      font-family: PingFang SC;
      font-style: normal;
      font-weight: 400;
      font-size: 14px;
      line-height: 20px;
      color: #1d1f1f;
      max-width: 650px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .date {
      font-family: PingFang SC;
      font-style: normal;
      font-weight: 400;
      font-size: 12px;
      line-height: 17px;
      color: #828e8e;
    }
  }
</style>
